<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>精美分页</title>
  </head>
  <style>
    body {
      margin: 0;
    }
    .page {
      background-color: azure;
      padding: 20px 0;
      text-align: center;
    }
    .page a, .page span {
      border:  1px solid #ddd;
      background-color: #fff;
      height: 30px;
      line-height: 30px;
      color:black;
      text-decoration: none;
      padding: 5px 10px;
      font-size: 14px;
    }
    .page span {
      background-color: coral;
      color: #fff;
    }
  </style>
  <body>
    <div class="page">
      <a href="">&lt;</a>
      <span>1</span>
      <a href="">2</a>
      <a href="">3</a>
      <a href="">4</a>
      <a href="">5</a>
      <a href="">...</a>
      <a href="">100</a>
      <a href="">&gt;</a>
    </div>
  </body>
</html>
